package com.gykj.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.gykj.redis.config.RedisClusterConf;

@SpringBootApplication
@EnableTransactionManagement
@MapperScan(basePackages = "com.gykj.admin.mapper")

@EnableDiscoveryClient
@Import(value={RedisClusterConf.class})
public class GykjAdminServiceApplication {
	
	protected static Logger logger = LoggerFactory.getLogger(GykjAdminServiceApplication.class);

	/**
	 * Main Start
	 */
	public static void main(String[] args) {

		new SpringApplicationBuilder(GykjAdminServiceApplication.class).web(true).run(args);
		logger.warn(GykjAdminServiceApplication.class.getName()+ "============= SpringBoot Start Success =============");
		
	}

}
